package com.eqsoft.gesturerecognition;

public class AccelVector
{
	private float[] vals;

	public AccelVector(float[] vals)
	{
		this.vals = vals;
	}

	public AccelVector(float ax, float ay, float az)
	{
		vals = new float[]{ax,ay,ax};
	}

	public float getX()
	{
		return vals[0];
	}

	public float getY()
	{
		return vals[1];
	}

	public float getZ()
	{
		return vals[2];
	}
	
	public float[] getVals()
	{
		return vals;
	}
	
	public float getAbs()
	{
		return (float)Math.sqrt(vals[0] * vals[0] + vals[1] * vals[1] + vals[2] * vals[2]);
	}
}
